Plotly Example - Randomly Generated Numbers

suppressPackageStartupMessages(library(plotly))
## Warning: package 'plotly' was built under R version 3.5.3
## Warning: package 'ggplot2' was built under R version 3.5.3
set.seed(250)
x1 <- runif(200,0,5)
x2 <- x1 + rnorm(200)

suppressMessages(plot_ly(x=x1,y=x2,mode="markers"))
## No trace type specified:
##   Based on info supplied, a 'scatter' trace seems appropriate.
##   Read more about this trace type -> https://plot.ly/r/reference/#scatter